import type { ConnectionStatus } from '../types';

export const createWebSocketContext = () => {
  return {
    socket: null as WebSocket | null,
    connectionStatus: 'disconnected' as ConnectionStatus,
    sendMessage: () => {},
    connect: () => {},
    disconnect: () => {},
  };
};

export const getInitialState = () => ({
  socket: null as WebSocket | null,
  connectionStatus: 'disconnected' as ConnectionStatus,
});